<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
    <title>Title</title>
</head>
<body>
<table class="table table-striped">
    <tr>
        <td>用户id</td>
        <td>登录名</td>
        <td>邮箱</td>
        <td>角色</td>
        <td>是否已启用</td>
        <td>状态</td>
    </tr>
    {foreach $data as $v}
    <tr>
        <td>{$v.id}</td>
        <td>{$v.username}</td>
        <td>{$v.email}</td>
        <td>{$v.role_id}</td>
        <td>{$v.status==0?"启用":"不启用"}</td>
        <td><a href="{:url('User/User/userDel')}?id={$v.id}">删除</a></td>
    </tr>
    {/foreach}
</table>
{$data->render()}
</body>
</html>